package com.lagou.ipersistence.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author Yan Jiahong
 * Created on 2020/11/22
 */
public interface Transaction {
    Connection getConnection() throws SQLException;
    void commit() throws SQLException;
    void rollback() throws SQLException;
    void close() throws SQLException;
    Integer getTimeout() throws SQLException;
}
